const query = require('../models');


module.exports = {
  get:(req,res)=>{
    console.log('接收到的数据:',req.body);
    let logId = req.body.logId ;
    let sql =' SELECT * FROM email WHERE sender_id=1 || receiver_id=1';
    query(sql, [logId, logId])
    .then((result)=>{
      console.log('查询成功',result)
    })
    .catch((err) => {
      console.log('操作失败',err)
    })
  }
}